#ifndef FRMBAR_H
#define FRMBAR_H

#include <QWidget>
#include "timewokerthread.h"

class QPushButton;
class Devicebutton;

namespace Ui {
class FrmBar;
}

class FrmBar : public QWidget
{
    Q_OBJECT

public:
    explicit FrmBar(QWidget *parent = 0);
    ~FrmBar();

private:
    Ui::FrmBar *ui;
    QList<QPushButton *> btnStyelist;
    QList<QPushButton *> btnColorlist;
    QString currentUser;
    TimeWokerThread *workThread;
private:
    void initForm();
    void initRegex();

private slots:
    void changeStyle();
    void changeColor();
    void showTime();
    void on_lineEdit_textChanged();
    void timeNotify(int sec);
    void on_btnImgLight_clicked();
};

#endif // FRMBAR_H
